import {toggleHighlighterCursor} from "~api/highlighterCursor";
import * as highlightText from "~api/highlightText";
import * as highlightImage from "~api/highlightImage";
import * as highlightPage from "~api/highlightPage";
import * as highlights from "~api/highlights";
import * as api from "~api"; // 这里相当于是引用自己

const highlighterCursor = {
  toggle: toggleHighlighterCursor,
};

// const initializeHighlightEventListeners = (highlightElement) =>{
//   // highlightElement.addEventListener('mouseenter', onHighlightMouseEnterOrClick);
//   highlightElement.addEventListener('click', onHighlightMouseEnterOrClick);
//   // highlightElement.addEventListener('mouseleave', onHighlightMouseLeave);
// }
//
// const removeHighlightEventListeners = (highlightElement) => {
//   // highlightElement.removeEventListener('mouseenter', onHighlightMouseEnterOrClick);
//   highlightElement.removeEventListener('click', onHighlightMouseEnterOrClick);
//   // highlightElement.removeEventListener('mouseleave', onHighlightMouseLeave);
// }
export const exposeAPI = () => {
  console.log("exposing API...");
  window.highlighterAPI = api;
}
export {
  highlighterCursor,
  highlightText,
  highlights,
  // highlight,
  highlightImage,
  highlightPage,
};
